package com.dog.modules.system.convert;


import com.dog.modules.system.domain.SysUser;
import com.dog.modules.system.api.vo.SysUserExcelVO;
import com.dog.modules.system.api.vo.SysUserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface SysUserConvert {
    SysUserConvert INSTANCE = Mappers.getMapper(SysUserConvert.class);

    SysUserVO convert(SysUser entity);

    SysUser convert(SysUserVO vo);

    List<SysUserVO> convertList(List<SysUser> list);

    List<SysUserExcelVO> convert2List(List<SysUser> list);

    List<SysUser> convertListEntity(List<SysUserExcelVO> list);

}
